Cogitator@home
==============

How To Run
----------
1. Unzip this folder, preferably somewhere with a short path like C:\Pool.
   Used the pool before? Unzip it over your old folder, or next to it, and you keep your name and settings.

2. Double-click RUN ME.bat.
   If Windows says it protected your PC, click More info, then Run anyway.
   On Linux, run: bash linux/run.sh (see Linux, at the end).
   The first time it installs what Python needs (a couple of minutes).
   Then its settings come up, with the GPU set to Off.
   Turn the GPU setting right to start working.
   It also puts a Cogitator@home shortcut on your desktop, to start it from next time.

3. Its settings sit under the status while it works, and you can change them as it runs.
   Up and down pick a setting, left and right change it, and Enter on your name lets you type a new one.
   
4. Leave it running as long as suits you. Close the window whenever.
   Minimise it and it tucks away into the tray, where the cogs turn while it works. Click them to bring it back.
   Turn on Start with Windows and it starts in the tray each time you log in.

What It Needs
-------------
- An NVIDIA graphics card. AMD and Intel graphics cards specifically cannot run it.
- An internet connection, to fetch work and send back what it finds.

What It Does NOT Do
-------------------
- It never touches Darktide, Steam, or anything outside this folder, apart from its desktop shortcut, unless you turn on PatchRay or Start with Windows (a shortcut in your Startup folder).
- It only reads your name from an older copy of this pack if there is one, and Darktide's logs if Read my logs is on.
- Closing it loses nothing: a block you did not finish goes back to the pool for someone else after a while.
- It sends the server only the names it found, the time a block took, the name you chose, your graphics card's model, and a random ID it makes so your name stays yours.

Got Your Own List Of Names?
---------------------------
If you've collected possible file paths some other way, you can check them against what the pool is still missing.
Drag your list onto CHECK NAMES.bat, or name it dict.txt, put it in this folder and double-click CHECK NAMES.bat.
The list needs one path per line.
Any that name a missing file are written to found.txt.
Drop found.txt into the /submit page on the site.

PatchRay
--------
PatchRay is an optional add-on that notes the file names Darktide uses while you play, so the pool can recover them.

It puts two files, dinput8.dll and hash_dump.asi, and a patchray folder into Darktide's binaries folder.
Close Darktide before installing or removing it.

While it's installed, the names it catches are handed in for you under your scoreboard name.
To take it out without running the helper, double-click REMOVE PATCHRAY.bat.

Linux
-----
Run bash linux/run.sh from the pack folder. It is untested on a real Linux box so far.
The first time it sets up its own Python in .venv, then asks your scoreboard name, whether to read your logs, and how much of the GPU to use.
There are no settings rows on Linux. To change those later, run: bash linux/run.sh --settings
Read my logs looks for Darktide's logs inside Steam's Proton folder.
PatchRay, the tray icon and Start with Windows are Windows only.
